package com.lc.controller;


import com.lc.service.MenuService;
import com.lc.vo.TmenuView;
import com.lc.vo.workbenchView;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 菜单
 */
@RestController
@RequestMapping("/lcmenu")
public class tmenuController {

    @Resource
    private MenuService mservice;

    /**
     * 二级动态菜单
     * @param userid
     * @return
     */
    @GetMapping("/selectByuseridshowmenu")
    public List<TmenuView> selectByuseridshowmenu(int userid){
        return this.mservice.selectByuseridshowmenu2(userid);
    }


    /**
     * 工作台查询
     * @return workbenchView
     */
    @GetMapping("/queryworkbenchcontroller")
    public workbenchView queryworkbenchcontroller(){
        return this.mservice.queryworkbenchService();
    }


}
